package com.ruoyi.standingbook.greenery.service;

import com.ruoyi.standingbook.greenery.domain.Greenery;
import com.ruoyi.standingbook.greenery.domain.vo.GreeneryImportDetailVo;
import com.ruoyi.standingbook.greenery.domain.vo.GreeneryPicVo;
import com.ruoyi.standingbook.greenery.domain.vo.GreeneryVo;
import com.ruoyi.standingbook.greenery.domain.bo.GreeneryBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.standingbook.lamp.domain.bo.LampFinishedSumBo;
import com.ruoyi.standingbook.lamp.domain.vo.LampPicVo;

import java.math.BigDecimal;
import java.util.Collection;
import java.util.List;

/**
 * 道路绿化管养任务完成进度Service接口
 *
 * @author cc
 * @date 2023-08-29
 */
public interface IGreeneryService {

    /**
     * 查询道路绿化管养任务完成进度
     */
    GreeneryVo queryById(Long id);

    /**
     * 查询道路绿化管养任务完成进度列表
     */
    TableDataInfo<GreeneryVo> queryPageList(GreeneryBo bo, PageQuery pageQuery);

    /**
     * 查询道路绿化管养任务完成进度列表
     */
    List<GreeneryVo> queryList(GreeneryBo bo);

    /**
     * 新增道路绿化管养任务完成进度
     */
    Boolean insertByBo(GreeneryBo bo);

    /**
     * 修改道路绿化管养任务完成进度
     */
    Boolean updateByBo(GreeneryBo bo);

    /**
     * 校验并批量删除道路绿化管养任务完成进度信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    Boolean batchInsert(List<GreeneryImportDetailVo> voList);

    List<GreeneryPicVo> getPicByDate(String date);

    BigDecimal getSumByDate(String date);

    BigDecimal getSumByDateAndCommunity(String date,String community);

    List<GreeneryVo> queryListByDate(String date,String community);
}
